import Vue from 'vue'
import { login, logout, phoneLogin, thirdLogin, sLogin } from '@/api/login'
import {
  ACCESS_TOKEN,
  USER_NAME,
  USER_INFO,
  USER_AUTH,
  SYS_BUTTON_AUTH,
  UI_CACHE_DB_DICT_DATA,
  TENANT_ID,
  CACHE_INCLUDED_ROUTES
} from '@/store/mutation-types'
import { welcome } from '@/utils/util'
import { queryPermissionsByUser } from '@/api/api'
import { getAction } from '@/api/manage'

const user = {
  state: {
    token: '',
    username: '',
    realname: '',
    tenantid: '',
    welcome: '',
    avatar: '',
    permissionList: [],
    info: {}
  },

  mutations: {
    SET_TOKEN: (state, token) => {
      state.token = token
    },
    SET_NAME: (state, { username, realname, welcome }) => {
      state.username = username
      state.realname = realname
      state.welcome = welcome
    },
    SET_AVATAR: (state, avatar) => {
      state.avatar = avatar
    },
    SET_PERMISSIONLIST: (state, permissionList) => {
      state.permissionList = permissionList
    },
    SET_INFO: (state, info) => {
      state.info = info
    },
    SET_TENANT: (state, id) => {
      state.tenantid = id
    }
  },

  actions: {
    // CAS验证登录
    ValidateLogin({ commit }, userInfo) {
      return new Promise((resolve, reject) => {
        getAction('/sys/cas/client/validateLogin', userInfo).then(response => {
          console.log('----cas 登录--------', response)
          if (response.success) {
            const result = response.result
            const userInfo = result.userInfo
            Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
            window.console.log(result,'result')
            commit('SET_TOKEN', result.token)
            commit('SET_INFO', userInfo)
            commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
            commit('SET_AVATAR', userInfo.avatar)
            resolve(response)
          } else {
            resolve(response)
          }
        }).catch(error => {
          reject(error)
        })
      })
    },
    // 登录
    Login({ commit }, userInfo) {
      return new Promise((resolve, reject) => {
        if (userInfo.appId == null || userInfo.appId == '') {
          userInfo.appId = window._CONFIG['domianAppId'];
        }
        sLogin(userInfo).then(response => {
          if (response.code == '200') {
            const result = response.result
            const userInfo = result.userInfo
            Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000)
            commit('SET_TOKEN', result.token)
            commit('SET_INFO', userInfo)

            window.sessionStorage.setItem('menu', JSON.stringify(result.menuList))
            window.localStorage.setItem('menu', JSON.stringify(result.menuList))
            window.localStorage.setItem('userId', userInfo.userId)

            commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
            commit('SET_AVATAR', userInfo.avatar)
            resolve(response)
          } else {
            reject(response)
          }
        }).catch(error => {
          reject(error)
        })
      })
    },
    //手机号登录
    PhoneLogin({ commit }, userInfo) {
      return new Promise((resolve, reject) => {
        phoneLogin(userInfo).then(response => {
          if (response.code == '200') {
            const result = response.result
            const userInfo = result.userInfo
            Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(UI_CACHE_DB_DICT_DATA, result.sysAllDictItems, 7 * 24 * 60 * 60 * 1000)
            commit('SET_TOKEN', result.token)
            commit('SET_INFO', userInfo)
            commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
            commit('SET_AVATAR', userInfo.avatar)
            resolve(response)
          } else {
            reject(response)
          }
        }).catch(error => {
          reject(error)
        })
      })
    },
    // 获取用户信息
    GetPermissionList({ commit }) {
      window.localStorage.getItem('token')
      var token = window.localStorage.getItem('token')
      console.log(token)
      var url = 'http://172.16.20.40:8080/student/#'
      return new Promise((resolve, reject) => {
        // queryPermissionsByUser().then(response => {
        let response = {
          'success': true,
          'message': '查询成功',
          'code': 200,
          'result': {
            'allAuth': [
              {
                'action': 'online:goGenerateCode',
                'describe': '代码生成按钮',
                'type': '1',
                'status': '1'
              }, {
                'action': 'user:add',
                'describe': '添加按钮',
                'type': '1',
                'status': '1'
              }, {
                'action': 'user:edit',
                'describe': '用户编辑',
                'type': '1',
                'status': '1'
              }, {
                'action': 'user:sex',
                'describe': '表单性别可见',
                'type': '1',
                'status': '1'
              }, {
                'action': 'user:form:birthday',
                'describe': '禁用生日字段',
                'type': '2',
                'status': '1'
              }, {
                'action': 'user:form:phone',
                'describe': '手机号禁用',
                'type': '2',
                'status': '1'
              }],
            'auth': [
              {
                'action': 'user:edit',
                'describe': '用户编辑',
                'type': '1'
              }, {
                'action': 'user:form:phone',
                'describe': '手机号禁用',
                'type': '2'
              }, {
                'action': 'user:sex',
                'describe': '表单性别可见',
                'type': '1'
              }, {
                'action': 'user:add',
                'describe': '添加按钮',
                'type': '1'
              }, {
                'action': 'user:form:birthday',
                'describe': '禁用生日字段',
                'type': '2'
              }, {
                'action': 'online:goGenerateCode',
                'describe': '代码生成按钮',
                'type': '1'
              }],
            'menu': [
              {
                'redirect': null,
                'path': '/dashboard/analysis',
                'component': 'dashboard/Analysis',
                'route': '1',
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'home',
                  'componentName': 'Analysis',
                  'title': '首页'
                },
                'name': 'dashboard-analysis',
                'id': '9502685863ab87f0ad1134142788a385'
              },
              {
                'redirect': null,
                'path': '/skill',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/skill/jsgl',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/skill/VeJwJingsaiProjectList',
                    'component': 'skill/VeJwJingsaiProjectList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJingsaiProjectList',
                      'title': '竞赛项目'
                    },
                    'name': 'skill-VeJwJingsaiProjectList',
                    'id': '1382515841551163394'
                  }, {
                    'path': '/skill/VeJwJingsaiGroupList',
                    'component': 'skill/VeJwJingsaiGroupList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJingsaiGroupList',
                      'title': '团队报名'
                    },
                    'name': 'skill-VeJwJingsaiGroupList',
                    'id': '1382619672062582786'
                  }, {
                    'path': '/skill/VeJwJingsaiPersonalList',
                    'component': 'skill/VeJwJingsaiPersonalList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJingsaiPersonalList',
                      'title': '个人报名'
                    },
                    'name': 'skill-VeJwJingsaiPersonalList',
                    'id': '1382237127030460418'
                  }, {
                    'path': '/skill/VeJwJingsaiScoreList',
                    'component': 'skill/VeJwJingsaiScoreList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJingsaiScoreList',
                      'title': '成绩管理'
                    },
                    'name': 'skill-VeJwJingsaiScoreList',
                    'id': '1382860569970761730'
                  }, {
                    'path': '/skill/VeJwJingsaiProjectStatisticsList',
                    'component': 'skill/VeJwJingsaiProjectStatisticsList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJingsaiProjectStatisticsList',
                      'title': '竞赛统计'
                    },
                    'name': 'skill-VeJwJingsaiProjectStatisticsList',
                    'id': '1382576920423686146'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'icon': 'line-chart',
                    'componentName': 'RouteView',
                    'title': '竞赛管理'
                  },
                  'name': 'skill-jsgl',
                  'id': '1382236265218428930'
                }, {
                  'path': '/skill/zyrz',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/skill/VeJwKsZhiyeList',
                    'component': 'skill/VeJwKsZhiyeList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwKsZhiyeList',
                      'title': '考试管理'
                    },
                    'name': 'skill-VeJwKsZhiyeList',
                    'id': '1382895729864892418'
                  }, {
                    'path': '/skill/VeJwCjZhiyeList',
                    'component': 'skill/VeJwCjZhiyeList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjZhiyeList',
                      'title': '录入成绩'
                    },
                    'name': 'skill-VeJwCjZhiyeList',
                    'id': '1382874784966139906'
                  }, {
                    'path': '/skill/VeJwCjZhiyeUpdateList',
                    'component': 'skill/VeJwCjZhiyeUpdateList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjZhiyeUpdateList',
                      'title': '成绩修改'
                    },
                    'name': 'skill-VeJwCjZhiyeUpdateList',
                    'id': '1382954156901294082'
                  }, {
                    'path': '/skill/VeJwZycjTemplateList',
                    'component': 'skill/VeJwZycjTemplateList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwZycjTemplateList',
                      'title': '打印模板'
                    },
                    'name': 'skill-VeJwZycjTemplateList',
                    'id': '1382984063618408449'
                  }, {
                    'path': '/skill/VeJwCjZhiyePrintingList',
                    'component': 'skill/VeJwCjZhiyePrintingList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjZhiyePrintingList',
                      'title': '成绩打印'
                    },
                    'name': 'skill-VeJwCjZhiyePrintingList',
                    'id': '1382992220348506114'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'icon': 'hourglass',
                    'componentName': 'RouteView',
                    'title': '职业认证管理'
                  },
                  'name': 'skill-zyrz',
                  'id': '1382874421491949570'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'star',
                  'componentName': 'RouteView',
                  'title': '职业技能'
                },
                'name': 'skill',
                'id': '1382966404583546881'
              },
              {
                'redirect': null,
                'path': '/kwgl',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/kwgl/setting',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/kwgl/setting/kssjdgl',
                    'component': 'kwgl/setting/VeJwKssjdList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwKssjdList',
                      'title': '考试时间段管理'
                    },
                    'name': 'kwgl-setting-kssjdgl',
                    'id': '1394123713849315329'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '基础设置'
                  },
                  'name': 'kwgl-setting',
                  'id': '1390479318496321538'
                }, {
                  'path': '/kwgl/kaoshi',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/kwgl/kaoshi/arrange',
                    'component': 'kwgl/kaoshi/VeJwKsArrange',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwKsArrange',
                      'title': '安排考试'
                    },
                    'name': 'kwgl-kaoshi-arrange',
                    'id': '1394105587908726785'
                  }, {
                    'path': '/kwgl/kaoshi/ksgl',
                    'component': 'kwgl/kaoshi/VeJwKaoshiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwKaoshiList',
                      'title': '考试信息管理'
                    },
                    'name': 'kwgl-kaoshi-ksgl',
                    'id': '1390576150807322626'
                  }, {
                    'path': '/kwgl/kaoshi/jkgl',
                    'component': 'kwgl/kaoshi/VeJwKsJiankaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwKsJiankaoList',
                      'title': '考试监考管理'
                    },
                    'name': 'kwgl-kaoshi-jkgl',
                    'id': '1394094402211663874'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '考试管理'
                  },
                  'name': 'kwgl-kaoshi',
                  'id': '1390575919252381698'
                }, {
                  'path': '/kwgl/bukao',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/kwgl/bukao/list',
                    'component': 'kwgl/bukao/VeJwCjBukaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjBukaoList',
                      'title': '生成补考名单'
                    },
                    'name': 'kwgl-bukao-list',
                    'id': '1392047055382175745'
                  }, {
                    'path': '/kwgl/bukao/students',
                    'component': 'kwgl/bukao/VeJwBkXueshengList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwBkXueshengList',
                      'title': '补考学生查询'
                    },
                    'name': 'kwgl-bukao-students',
                    'id': '1392046421811585025'
                  }, {
                    'path': '/kwgl/bukao/bkgl',
                    'component': 'kwgl/bukao/VeJwBukaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwBukaoList',
                      'title': '补考考试管理'
                    },
                    'name': 'kwgl-bukao-bkgl',
                    'id': '1392046103560380417'
                  }, {
                    'path': '/kwgl/bukao/jkgl',
                    'component': 'kwgl/bukao/VeJwBkJiankaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwBkJiankaoList',
                      'title': '补考监考管理'
                    },
                    'name': 'kwgl-bukao-jkgl',
                    'id': '1392047356587728897'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '补考管理'
                  },
                  'name': 'kwgl-bukao',
                  'id': '1392045882382147585'
                }, {
                  'path': '/kwgl/qingkao',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/kwgl/qingkao/product',
                    'component': 'kwgl/qingkao/VeJwCjQingkaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjQingkaoList',
                      'title': '生成清考名单 '
                    },
                    'name': 'kwgl-qingkao-product',
                    'id': '1392061119093202946'
                  }, {
                    'path': '/kwgl/qingkao/qkstudents',
                    'component': 'kwgl/qingkao/VeJwQkXueshengList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwQkXueshengList',
                      'title': '清考名单查询 '
                    },
                    'name': 'kwgl-qingkao-qkstudents',
                    'id': '1390842523167952898'
                  }, {
                    'path': '/kwgl/qingkao/qkgl',
                    'component': 'kwgl/qingkao/VeJwQingkaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwQingkaoList',
                      'title': '清考考试管理'
                    },
                    'name': 'kwgl-qingkao-qkgl',
                    'id': '1390841422750355458'
                  }, {
                    'path': '/kwgl/qingkao/jkgl',
                    'component': 'kwgl/qingkao/VeJwQkJiankaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwQkJiankaoList',
                      'title': '清考监考管理'
                    },
                    'name': 'kwgl-qingkao-jkgl',
                    'id': '1390841662417080321'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '清考管理'
                  },
                  'name': 'kwgl-qingkao',
                  'id': '1390840694757593090'
                }, {
                  'path': '/kwgl/manage',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/kwgl/manage/cjlxgl',
                    'component': 'kwgl/manage/VeJwCjlxList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjlxList',
                      'title': '成绩类型管理'
                    },
                    'name': 'kwgl-manage-cjlxgl',
                    'id': '1394194321924673538'
                  }, {
                    'path': '/kwgl/manage/cjllsz',
                    'component': 'kwgl/manage/VeJwCjsettingList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjsettingList',
                      'title': '成绩录入设置'
                    },
                    'name': 'kwgl-manage-cjlxgl',
                    'id': '1394194321924671538'
                  }, {
                    'path': '/kwgl/manage/cjlr',
                    'component': 'kwgl/manage/VeJwCjPutin',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjPutin',
                      'title': '成绩录入'
                    },
                    'name': 'kwgl-manage-cjlr',
                    'id': '1395317076732596225'
                  }, {
                    'path': '/kwgl/manage/chengjiAudit',
                    'component': 'kwgl/manage/VeJwChengjiListAudit',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwChengjiListAudit',
                      'title': '录入成绩审核'
                    },
                    'name': 'kwgl-manage-changeapply',
                    'id': '1394230668005724162'
                  }, {
                    'path': '/kwgl/manage/changeapply',
                    'component': 'kwgl/manage/VeJwChengjiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwChengjiList',
                      'title': '成绩修改申请'
                    },
                    'name': 'kwgl-manage-changeapply',
                    'id': '1394230668005724162'
                  }, {
                    'path': '/kwgl/manage/change',
                    'component': 'kwgl/manage/VeJwCjChangeList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjChangeList',
                      'title': '成绩修改审核'
                    },
                    'name': 'kwgl-manage-change',
                    'id': '1394214456274178049'
                  }, {
                    'path': '/kwgl/manage/bjcj',
                    'component': 'kwgl/manage/VeJwCJClassList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCJClassList',
                      'title': '班级成绩列表'
                    },
                    'name': 'kwgl-manage-bjcj',
                    'id': '1394933743783723010'
                  }, {
                    'path': '/kwgl/manage/bkcjlr',
                    'component': 'kwgl/manage/VeJwCjBkPutin',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjBkPutin',
                      'title': '补考成绩录入'
                    },
                    'name': 'kwgl-manage-bkcjlr',
                    'id': '1394941678521892865'
                  }, {
                    'path': '/kwgl/manage/bkcj',
                    'component': 'kwgl/manage/VeJwCjBukaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjBukaoList',
                      'title': '补考成绩记录'
                    },
                    'name': 'kwgl-manage-bkcj',
                    'id': '1394172150603042818'
                  }, {
                    'path': '/kwgl/manage/qkcjlr',
                    'component': 'kwgl/manage/VeJwCjQkPutin',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjQkPutin',
                      'title': '清考成绩录入'
                    },
                    'name': 'kwgl-manage-qkcjlr',
                    'id': '1394941678521892865'
                  }, {
                    'path': '/kwgl/manage/qkcj',
                    'component': 'kwgl/manage/VeJwCjQingkaoList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjQingkaoList',
                      'title': '清考成绩记录'
                    },
                    'name': 'kwgl-manage-qkcj',
                    'id': '1394172150603042818'
                  }, {
                    'path': '/kwgl/manage/free',
                    'component': 'kwgl/manage/VeJwCjFreeList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCjFreeList',
                      'title': '免缓缺登记'
                    },
                    'name': 'kwgl-manage-free',
                    'id': '1394589122910187521'
                  }
                    //   {
                    //   'path': '/kwgl/manage/cjPrint',
                    //   'component': 'kwgl/manage/VeJwCjPrintList',
                    //   'route': '1',
                    //   'meta': {
                    //     'keepAlive': false,
                    //     'internalOrExternal': false,
                    //     'componentName': 'VeJwCjPrintList',
                    //     'title': '打印成绩单'
                    //   },
                    //   'name': 'kwgl-manage-free',
                    //   'id': '1394589122910187521'
                    // }
                  ],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '成绩管理'
                  },
                  'name': 'kwgl-manage',
                  'id': '1390145482055045121'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'highlight',
                  'componentName': 'RouteView',
                  'title': '考务管理'
                },
                'name': 'kwgl',
                'id': '1382521525232553986'
              },
              {
                'redirect': null,
                'path': '/jxrw',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/jxrw/mission',
                  'component': 'jxrw/VeJwJxrwList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'VeJwJxrwList',
                    'title': '教学任务'
                  },
                  'name': 'jxrw-mission',
                  'id': '1390482559446536193'
                }
                  //   {
                  //   'path': '/jxrw/situation',
                  //   'component': 'jxrw/VeJwPkmxList',
                  //   'route': '1',
                  //   'meta': {
                  //     'keepAlive': false,
                  //     'internalOrExternal': false,
                  //     'componentName': 'VeJwPkmxList',
                  //     'title': '任课情况'
                  //   },
                  //   'name': 'jxrw-situation',
                  //   'id': '1390482776065560577'
                  // }, {
                  //   'path': '/jxrw/jxjd',
                  //   'component': 'jxrw/VeJwJxjdList',
                  //   'route': '1',
                  //   'meta': {
                  //     'keepAlive': false,
                  //     'internalOrExternal': false,
                  //     'componentName': 'VeJwJxjdList',
                  //     'title': '教学进度'
                  //   },
                  //   'name': 'jxrw-jxjd',
                  //   'id': '1390482776065560578'
                  // }
                ],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'snippets',
                  'componentName': 'RouteView',
                  'title': '教学任务'
                },
                'name': 'jxrw',
                'id': '1390481838043025409'
              },
              {
                'redirect': null,
                'path': '/pyfa',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/pyfa/list',
                  'component': 'pyfa/VeJwPyfaList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'VeJwPyfaList',
                    'title': '培养方案'
                  },
                  'name': 'pyfa-list',
                  'id': '1403552204844482561'
                }, {
                  'path': '/pyfa/kcjh',
                  'component': 'pyfa/VeJwKcjhList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'VeJwKcjhList',
                    'title': '课程计划'
                  },
                  'name': 'pyfa-kcjh',
                  'id': '1403552438450438146'
                }
                  // ,{
                  //   'path': '/pyfa/xkjh',
                  //   'component': 'pyfa/VeJwXkjhList',
                  //   'route': '1',
                  //   'meta': {
                  //     'keepAlive': false,
                  //     'internalOrExternal': false,
                  //     'componentName': 'VeJwXkjhList',
                  //     'title': '选课计划'
                  //   },
                  //   'name': 'pyfa-xkjh',
                  //   'id': '1403552608810483714'
                  // }
                ],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'componentName': 'RouteView',
                  'title': '培养方案'
                },
                'name': 'pyfa',
                'id': '1403551675095498754'
              },
              {
                'redirect': null,
                'path': '/jbsz',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/jbsz/kcxz',
                  'component': 'jbsz/VeJwKcxzList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'VeJwKcxzList',
                    'title': '课程性质'
                  },
                  'name': 'jbsz-kcxz',
                  'id': '1403883714101399553'
                }, {
                  'path': '/jbsz/bzr',
                  'component': 'jbsz/VeJwBzrList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'VeJwBzrList',
                    'title': '班主任'
                  },
                  'name': 'jbsz-bzr',
                  'id': '1403883527291293698'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'componentName': 'RouteView',
                  'title': '基本设置'
                },
                'name': 'jbsz',
                'id': '1403883321627791361'
              },
              {
                'redirect': null,
                'path': '/jxgz',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/jxgz/jxhdgl',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jxgz/VeJwTeachactList',
                    'component': 'jxgz/VeJwTeachactList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwTeachactList',
                      'title': '教学活动'
                    },
                    'name': 'jxgz-VeJwTeachactList',
                    'id': '1388035406246776833'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '教学活动管理'
                  },
                  'name': 'jxgz-jxhdgl',
                  'id': '1386848972508774401'
                }, {
                  'path': '/jxgz/gzzj',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jxgz/VeJwGzzjList',
                    'component': 'jxgz/VeJwGzzjList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwGzzjList',
                      'title': '总结管理'
                    },
                    'name': 'jxgz-VeJwGzzjList',
                    'id': '1386848128644169730'
                  }, {
                    'path': '/jxgz/mygzzj',
                    'component': 'jxgz/VeJwMyGzzjList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwMyGzzjList',
                      'title': '我的工作总结'
                    },
                    'name': 'jxgz-mygzzj',
                    'id': '1397443441346961410'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '工作总结'
                  },
                  'name': 'jxgz-gzzj',
                  'id': '1386847958888103937'
                }, {
                  'path': '/jxgz/jxrz',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jxgz/VeJwMyJxrzList',
                    'component': 'jxgz/VeJwMyJxrzList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwMyJxrzList',
                      'title': '我的日志'
                    },
                    'name': 'jxgz-VeJwMyJxrzList',
                    'id': '1397466173392510977'
                  }, {
                    'path': '/jxgz/VeJwJxrzList',
                    'component': 'jxgz/VeJwJxrzList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwJxrzList',
                      'title': '教学日志管理'
                    },
                    'name': 'jxgz-VeJwJxrzList',
                    'id': '1386956264503787522'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '教学日志'
                  },
                  'name': 'jxgz-jxrz',
                  'id': '1386849100137250818'
                }, {
                  'path': '/jxgz/bjgg',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jxgz/VeJwBjggList',
                    'component': 'jxgz/VeJwBjggList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwBjggList',
                      'title': '我的班级公告'
                    },
                    'name': 'jxgz-VeJwBjggList',
                    'id': '1386867143886258178'
                  }, {
                    'path': '/jxgz/VeJwBjggManageList',
                    'component': 'jxgz/VeJwBjggManageList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwBjggManageList',
                      'title': '班级公告管理'
                    },
                    'name': 'jxgz-VeJwBjggManageList',
                    'id': '1387247855068053505'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '班级公告'
                  },
                  'name': 'jxgz-bjgg',
                  'id': '1386849237530066946'
                },{
                  'path': '/jxgz/skjh',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jxgz/customjxjh',
                    'component': 'jxgz/VeJwCustomSkjhList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwCustomSkjhList',
                      'title': '制定授课计划'
                    },
                    'name': 'jxgz-customjxjh',
                    'id': '1397449835592769537'
                  }, {
                    'path': '/jxgz/myskjh',
                    'component': 'jxgz/VeJwSkjhList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwSkjhList',
                      'title': '我的授课计划'
                    },
                    'name': 'jxgz-myskjh',
                    'id': '1397449507258458113'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '授课计划'
                  },
                  'name': 'jxgz-skjh',
                  'id': '1397449097873416194'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'schedule',
                  'componentName': 'RouteView',
                  'title': '教学工作管理'
                },
                'name': 'jxgz',
                'id': '1386595815757205505'
              },
              {
                'redirect': null,
                'path': '/tjcx',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [
                  {
                    'path': '/jxgz/ketj',
                    'component': 'jxgz/VeJwTjKeshiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'VeJwTjKeshiList',
                      'title': '教师课时统计'
                    },
                    'name': 'jxgz-ketj',
                    'id': '1397813975129694210'
                  },
                  {
                    "redirect": "",
                    "path": "/timeManage",
                    "component": "layouts/RouteView",
                    "route": "1",
                    "children": [
                      {
                        "path": "/timeManage/add",
                        "component": "timeManage/add/classReport",
                        "route": "1",
                        "meta": {
                          "keepAlive": false,
                          "internalOrExternal": false,
                          "componentName": "classReport",
                          "title": "课时上报"
                        },
                        "name": "jxgz-kssb",
                        "id": "1397449507258458114"
                      },
                      {
                        "path": "/timeManage/list",
                        "component": "timeManage/list/workList",
                        "route": "1",
                        "meta": {
                          "keepAlive": false,
                          "internalOrExternal": false,
                          "componentName": "workList",
                          "title": "教师考勤统计"
                        },
                        "name": "jxgz-kqlb",
                        "id": "1397449507258458115"
                      },
                      {
                        "path": "/timeManage/detail",
                        "component": "timeManage/detail/classDetail",
                        "route": "1",
                        "meta": {
                          "keepAlive": false,
                          "internalOrExternal": false,
                          "componentName": "classDetail",
                          "title": "教师考勤详情"
                        },
                        "name": "jxgz-kqxq",
                        "id": "1397449507258458116"
                      }
                    ],
                    "meta": {
                      "keepAlive": false,
                      "internalOrExternal": false,
                      "icon": "deployment-unit",
                      "componentName": "RouteView",
                      "title": "教师考勤统计"
                    },
                    "name": "timeManage",
                    "id": "1397813975129694211"
                  },
                  {
                    'path': '/jxgz/cjtj',
                    'component': 'layouts/RouteView',
                    'route': '1',
                    'children': [{
                      'path': '/jxgz/tjsz',
                      'component': 'jxgz/VeJwTjSettingList',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjSettingList',
                        'title': '统计设置'
                      },
                      'name': 'jxgz-tjsz',
                      'id': '1397723661547249666'
                    }, {
                      'path': '/jxgz/zyks',
                      'component': 'jxgz/VeJwZyks',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwZyks',
                        'title': '重要考试查看'
                      },
                      'name': 'jxgz-zyks',
                      'id': '1397794313453084674'
                    }, {
                      'path': '/jxgz/jgltj',
                      'component': 'jxgz/VeJwTjJigeList',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjJigeList',
                        'title': '及格率统计 '
                      },
                      'name': 'jxgz-jgltj',
                      'id': '1397723292234588161'
                    }, {
                      'path': '/jxgz/cjfx',
                      'component': 'jxgz/VeJwCjfx',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwCjfx',
                        'title': '成绩分析'
                      },
                      'name': 'jxgz-cjfx',
                      'id': '1397723090626977793'
                    }, {
                      'path': '/jxgz/cjcx',
                      'component': 'jxgz/VeJwChengjiList',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwChengjiList',
                        'title': '成绩查询'
                      },
                      'name': 'jxgz-cjcx',
                      'id': '1397717296078561282'
                    }],
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'RouteView',
                      'title': '学生成绩统计'
                    },
                    'name': 'jxgz-cjtj',
                    'id': '1397717016398176257'
                  },
                  {
                    'path': '/jxgz/jxzy',
                    'component': 'layouts/RouteView',
                    'route': '1',
                    'children': [{
                      'path': '/jxgz/jstj',
                      'component': 'jxgz/VeJwJstj',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwJstj',
                        'title': '教室统计'
                      },
                      'name': 'jxgz-jstj',
                      'id': '1397803609557475329'
                    }, {
                      'path': '/jxgz/jckc',
                      'component': 'jxgz/JwJiaocaiKuncunList',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'JwJiaocaiKuncunList',
                        'title': '教材查询'
                      },
                      'name': 'jxgz-jckc',
                      'id': '1397801816765145089'
                    }, {
                      'path': '/jxgz/kctj',
                      'component': 'jxgz/VeJwKctj',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwKctj',
                        'title': '课程统计'
                      },
                      'name': 'jxgz-kctj',
                      'id': '1397803250160148481'
                    }],
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'RouteView',
                      'title': '教学资源统计'
                    },
                    'name': 'jxgz-jxzy',
                    'id': '1397800463695257601'
                  }, {
                    'path': '/jxgz/kbcx',
                    'component': 'layouts/RouteView',
                    'route': '1',
                    'children': [{
                      'path': '/jxgz/bjkbcx',
                      'component': 'jxgz/VeJwTjBJKBCX',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjBJKBCX',
                        'title': '班级课表查询'
                      },
                      'name': 'jxgz-bjkbcx',
                      'id': '1397803609557472122'
                    }, {
                      'path': '/jxgz/jskbcx',
                      'component': 'jxgz/VeJwTjJSKBCX',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjJSKBCX',
                        'title': '教师课表查询'
                      },
                      'name': 'jxgz-jskbcx',
                      'id': '13978036095574743252'
                    }, {
                      'path': '/jxgz/jiaoskbcx',
                      'component': 'jxgz/VeJwTjJiaoSKBCX',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjJiaoSKBCX',
                        'title': '教室课表查询'
                      },
                      'name': 'jxgz-jiaoskbcx',
                      'id': '1397803603421743252'
                    }, {
                      'path': '/jxgz/zykbcx',
                      'component': 'jxgz/VeJwTjZYKBCX',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjZYKBCX',
                        'title': '专业课表查询'
                      },
                      'name': 'jxgz-zykbcx',
                      'id': '13978036111143252'
                    }, {
                      'path': '/jxgz/qxkbcx',
                      'component': 'jxgz/VeJwTjQXKBCX',
                      'route': '1',
                      'meta': {
                        'keepAlive': false,
                        'internalOrExternal': false,
                        'componentName': 'VeJwTjQXKBCX',
                        'title': '全校课表查询'
                      },
                      'name': 'jxgz-qxkbcx',
                      'id': '13978036114325252'
                    }],
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'RouteView',
                      'title': '课表查询'
                    },
                    'name': 'jxgz-kbcx',
                    'id': '1397800463695257213'
                  }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'schedule',
                  'componentName': 'RouteView',
                  'title': '统计查询'
                },
                'name': 'ticx',
                'id': '1386595815757215505'
              },
              {
                'redirect': null,
                'path': '/jw/jxzy',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/jw/course',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jw/jxzy/addCourse',
                    'component': 'jxzy/JwKechengAdd',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwKechengAdd',
                      'title': '添加课程'
                    },
                    'name': 'jw-jxzy-addCourse',
                    'id': '1382504639355052033'
                  }, {
                    'path': '/jw/jxzy/courseList',
                    'component': 'jxzy/JwKechengList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwKechengList',
                      'title': '课程管理'
                    },
                    'name': 'jw-jxzy-courseList',
                    'id': '1382504778907934722'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'icon': 'read',
                    'componentName': 'RouteView',
                    'title': '课程库管理'
                  },
                  'name': 'jw-course',
                  'id': '1382256963409543170'
                }, {
                  'path': '/jw/jxcd',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jw/teachingBuilding',
                    'component': 'jxzy/JwJianzhuList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJianzhuList',
                      'title': '教学楼管理'
                    },
                    'name': 'jw-teachingBuilding',
                    'id': '1382263289506299906'
                  }, {
                    'path': '/jw/jxzy/classRoom',
                    'component': 'jxzy/JwJiaoshiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaoshiList',
                      'title': '教室管理'
                    },
                    'name': 'jw-jxzy-classRoom',
                    'id': '1382263434314645505'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'icon': 'gateway',
                    'componentName': 'RouteView',
                    'title': '教学场地管理'
                  },
                  'name': 'jw-jxcd',
                  'id': '1382257980310159361'
                }, {
                  'path': '/jw/jcgl',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/jw/jxzy/cangku',
                    'component': 'jxzy/JwCangkuList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwCangkuList',
                      'title': '仓库管理'
                    },
                    'name': 'jw-jxzy-cangku',
                    'id': '1382233260483362817'
                  }, {
                    'path': '/jw/jxzy/jiaocaiSupplier',
                    'component': 'jxzy/JwJiaocaiSupplierList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiSupplierList',
                      'title': '供应商管理'
                    },
                    'name': 'jw-jxzy-jiaocaiSupplier',
                    'id': '1382235364753096705'
                  }, {
                    'path': '/jw/jxzy/jiaocai',
                    'component': 'jxzy/JwJiaocaiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiList',
                      'title': '教材管理'
                    },
                    'name': 'jw-jxzy-jiaocai',
                    'id': '1382233444915298305'
                  }, {
                    'path': '/jw/jxzy/jiaocaiInLog',
                    'component': 'jxzy/JwJiaocaiInLogList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiInLogList',
                      'title': '教材入库'
                    },
                    'name': 'jw-jxzy-jiaocaiInLog',
                    'id': '1382260783279636482'
                  }, {
                    'path': '/jw/jxzy/jiaocaiOutLog',
                    'component': 'jxzy/JwJiaocaiOutLogList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiOutLogList',
                      'title': '教材出库'
                    },
                    'name': 'jw-jxzy-jiaocaiOutLog',
                    'id': '1382233770246488066'
                  }, {
                    'path': '/jw/jxzy/jiaocaiOrder',
                    'component': 'jxzy/JwJiaocaiOrderList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiOrderList',
                      'title': '教材订单'
                    },
                    'name': 'jw-jxzy-jiaocaiOrder',
                    'id': '1382235069524426754'
                  }, {
                    'path': '/jw/jxzy/JwJiaocaiLog',
                    'component': 'jxzy/JwJiaocaiLogList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiLogList',
                      'title': '出入库查询'
                    },
                    'name': 'jw-jxzy-JwJiaocaiLog',
                    'id': '1387571655977439233'
                  }, {
                    'path': '/jw/jxzy/jiaocaiKucun',
                    'component': 'jxzy/JwJiaocaiKucunList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JwJiaocaiKucunList',
                      'title': '库存查询'
                    },
                    'name': 'jw-jxzy-jiaocaiKucun',
                    'id': '1382234820928028673'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'icon': 'save',
                    'componentName': 'RouteView',
                    'title': '教材管理'
                  },
                  'name': 'jw-jcgl',
                  'id': '1382258415892824066'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'printer',
                  'componentName': 'RouteView',
                  'title': '教学资源管理'
                },
                'name': 'jw-jxzy',
                'id': '1382233104451059714'
              },
              {
                'redirect': null,
                'path': '/courses',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/courses/manual',
                  'component': 'courses/manual/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '手动排课'
                  },
                  'name': 'courses-manual',
                  'id': '1390198829013291010'
                }, {
                  'path': '/courses/voluntarily',
                  'component': 'courses/voluntarily/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '自动排课'
                  },
                  'name': 'courses-voluntarily',
                  'id': '1390200497524199426'
                }, {
                  'path': '/courses/parameter',
                  'component': 'courses/parameter/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '排课参数配置'
                  },
                  'name': 'courses-parameter',
                  'id': '1390201902297272321'
                }, {
                  'path': '/courses/set',
                  'component': 'courses/set/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '排课节设置'
                  },
                  'name': 'courses-set',
                  'id': '1390202582651129857'
                }, {
                  'path': '/courses/school',
                  'component': 'courses/school/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '全校不排课时间'
                  },
                  'name': 'courses-school',
                  'id': '1390203529410400257'
                }, {
                  'path': '/courses/classroom',
                  'component': 'courses/classroom/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '教室不排课时间'
                  },
                  'name': 'courses-classroom',
                  'id': '1390203943971213314'
                }, {
                  'path': '/courses/teacher',
                  'component': 'courses/teacher/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '教师不排课时间'
                  },
                  'name': 'courses-teacher',
                  'id': '1390204428291690498'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'profile',
                  'componentName': 'RouteView',
                  'title': '排课管理'
                },
                'name': 'courses',
                'id': '1390198161489809409'
              },
              {
                'redirect': '',
                'path': '/courseManagement',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/courseManagement/administrative',
                  'component': 'courseManagement/administrative/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '行政调课'
                  },
                  'name': 'courseManagement-administrative',
                  'id': '1390916595093635073'
                }, {
                  'path': '/courseManagement/applyFor',
                  'component': 'courseManagement/applyFor/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '调课申请'
                  },
                  'name': 'courseManagement-applyFor',
                  'id': '1390916855098540033'
                }, {
                  'path': '/courseManagement/audit',
                  'component': 'courseManagement/audit/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '调课审批'
                  },
                  'name': 'courseManagement-audit',
                  'id': '1390917018101776386'
                }, {
                  'path': '/courseManagement/record',
                  'component': 'courseManagement/record/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '我的调课记录'
                  },
                  'name': 'courseManagement-record',
                  'id': '1390917140361543682'
                }, {
                  'path': '/courseManagement/statistics',
                  'component': 'courseManagement/statistics/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '调课统计'
                  },
                  'name': 'courseManagement-statistics',
                  'id': '1390917418850746369'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'deployment-unit',
                  'componentName': 'RouteView',
                  'title': '调课管理'
                },
                'name': 'courseManagement',
                'id': '1390914263509401602'
              },
              {
                'redirect': null,
                'path': '/curriculas',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/curriculas/pattern',
                  'component': 'curriculas/pattern/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '选课模式'
                  },
                  'name': 'curriculas-pattern',
                  'id': '1390595516013748226'
                }, {
                  'path': '/curriculas/time',
                  'component': 'curriculas/time/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学期选课时间'
                  },
                  'name': 'curriculas-time',
                  'id': '1390596042126270465'
                }, {
                  'path': '/curriculas/restrict',
                  'component': 'curriculas/restrict/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学生选课限制'
                  },
                  'name': 'curriculas-restrict',
                  'id': '1390596471107100674'
                }, {
                  'path': '/curriculas/students',
                  'component': 'curriculas/students/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学生选课'
                  },
                  'name': 'curriculas-students',
                  'id': '1390597801288671234'
                },

                  {
                    'path': '/kwgl/student/cj',
                    'component': 'kwgl/student/VeJwChengjiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'index',
                      'title': '成绩查询'
                    },
                    'name': 'kwgl-student-cj',
                    'id': '1390597801288671234'
                  },
                  {
                    'path': '/kwgl/student/ks',
                    'component': 'kwgl/student/VeJwKaoshiList',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'index',
                      'title': '考试查询'
                    },
                    'name': 'kwgl-student-ks',
                    'id': '1390597801288671234'
                  }

                ],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'tags',
                  'componentName': 'RouteView',
                  'title': '选课管理'
                },
                'name': 'curriculas',
                'id': '1390593507177013250'
              },
              {
                'redirect': null,
                'path': '/iframe',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/iframe/xjzc',
                  'component': 'iframe/xjzc/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学籍注册'
                  }
                }, {
                  'path': '/iframe/xsxxwh',
                  'component': 'iframe/xsxxwh/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学生信息维护'
                  }
                }, {
                  'path': '/iframe/shxjxg',
                  'component': 'iframe/shxjxg/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '审核学籍修改申请'
                  }
                }, {
                  'path': '/iframe/xjyd',
                  'component': 'iframe/xjyd/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学籍异动'
                  }
                }, {
                  'path': '/iframe/xqzc',
                  'component': 'iframe/xqzc/index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'index',
                    'title': '学期注册'
                  }
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'tags',
                  'componentName': 'RouteView',
                  'title': '学籍管理'
                }
              },
              {
                'redirect': null,
                'path': '/isystem',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/isystem/user',
                  'component': 'system/UserList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'UserList',
                    'title': '用户管理'
                  },
                  'name': 'isystem-user',
                  'id': '3f915b2769fc80648e92d04e84ca059d'
                }, {
                  'path': '/isystem/roleUserList',
                  'component': 'system/RoleUserList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RoleUserList',
                    'title': '角色管理'
                  },
                  'name': 'isystem-roleUserList',
                  'id': '190c2b43bec6a5f7a4194a85db67d96a'
                }, {
                  'path': '/isystem/permission',
                  'component': 'system/PermissionList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'PermissionList',
                    'title': '菜单管理'
                  },
                  'name': 'isystem-permission',
                  'id': '54dd5457a3190740005c1bfec55b1c34'
                }, {
                  'path': '/isystem/depart',
                  'component': 'system/DepartList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'DepartList',
                    'title': '部门管理'
                  },
                  'name': 'isystem-depart',
                  'id': '45c966826eeff4c99b8f8ebfe74511fc'
                }, {
                  'path': '/isystem/departUserList',
                  'component': 'system/DepartUserList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'DepartUserList',
                    'title': '我的部门'
                  },
                  'name': 'isystem-departUserList',
                  'id': '5c2f42277948043026b7a14692456828'
                }, {
                  'path': '/isystem/position',
                  'component': 'system/SysPositionList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysPositionList',
                    'title': '职务管理'
                  },
                  'name': 'isystem-position',
                  'id': '1174506953255182338'
                }, {
                  'path': '/isystem/addressList',
                  'component': 'system/AddressList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'AddressList',
                    'title': '通讯录'
                  },
                  'name': 'isystem-addressList',
                  'id': '1174590283938041857'
                }, {
                  'path': '/isystem/dict',
                  'component': 'system/DictList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'DictList',
                    'title': '数据字典'
                  },
                  'name': 'isystem-dict',
                  'id': 'f1cb187abf927c88b89470d08615f5ac'
                }, {
                  'path': '/isys/category',
                  'component': 'system/SysCategoryList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysCategoryList',
                    'title': '分类字典'
                  },
                  'name': 'isys-category',
                  'id': 'ebb9d82ea16ad864071158e0c449d186'
                }, {
                  'path': '/isystem/annountCement',
                  'component': 'system/SysAnnouncementList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysAnnouncementList',
                    'title': '系统通告'
                  },
                  'name': 'isystem-annountCement',
                  'id': 'e08cb190ef230d5d4f03824198773950'
                }, {
                  'path': '/isys/tenant',
                  'component': 'system/TenantList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'TenantList',
                    'title': '租户管理'
                  },
                  'name': 'isys-tenant',
                  'id': '1280350452934307841'
                }, {
                  'path': '/isystem/newPermissionList',
                  'component': 'system/NewPermissionList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'NewPermissionList',
                    'title': '菜单管理2'
                  },
                  'name': 'isystem-newPermissionList',
                  'id': '1170592628746878978'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'setting',
                  'componentName': 'RouteView',
                  'title': '系统管理'
                },
                'name': 'isystem',
                'id': 'd7d6e2e4e2934f2c9385a623fd98c6f3'
              },
              {
                'redirect': null,
                'path': '/online',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/online/cgform',
                  'component': 'modules/online/cgform/OnlCgformHeadList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformHeadList',
                    'title': 'Online表单开发'
                  },
                  'name': 'online-cgform',
                  'id': '8d4683aacaa997ab86b966b464360338'
                }, {
                  'path': '/online/copyform/:code',
                  'component': 'modules/online/cgform/OnlCgformCopyList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformCopyList',
                    'title': 'AUTO复制表单'
                  },
                  'name': 'online-copyform-@code',
                  'id': 'f2849d3814fc97993bfc519ae6bbf049'
                }, {
                  'path': '/online/cgreport',
                  'component': 'modules/online/cgreport/OnlCgreportHeadList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgreportHeadList',
                    'title': 'Online报表配置'
                  },
                  'name': 'online-cgreport',
                  'id': '109c78a583d4693ce2f16551b7786786'
                }, {
                  'path': '/isystem/fillRule',
                  'component': 'system/SysFillRuleList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysFillRuleList',
                    'title': '系统编码规则'
                  },
                  'name': 'isystem-fillRule',
                  'id': '1192318987661234177'
                }, {
                  'path': '/isystem/checkRule',
                  'component': 'system/SysCheckRuleList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysCheckRuleList',
                    'title': '系统校验规则'
                  },
                  'name': 'isystem-checkRule',
                  'id': '1224641973866467330'
                }, {
                  'path': '/online/cgformErpList/:code',
                  'component': 'modules/online/cgform/auto/erp/OnlCgformErpList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformErpList',
                    'title': 'AUTO在线表单ERP'
                  },
                  'name': 'online-cgformErpList-@code',
                  'id': '1229674163694841857'
                }, {
                  'path': '/isystem/dataSource',
                  'component': 'system/SysDataSourceList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysDataSourceList',
                    'title': '多数据源管理'
                  },
                  'name': 'isystem-dataSource',
                  'id': '1209731624921534465'
                }, {
                  'path': '/online/cgformTabList/:code',
                  'component': 'modules/online/cgform/auto/tab/OnlCgformTabList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformTabList',
                    'title': 'AUTO在线表单TAB'
                  },
                  'name': 'online-cgformTabList-@code',
                  'id': '1304032910990495745'
                }, {
                  'path': '/online/cgformTreeList/:code',
                  'component': 'modules/online/cgform/auto/OnlCgformTreeList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformTreeList',
                    'title': 'AUTO树表单列表'
                  },
                  'name': 'online-cgformTreeList-@code',
                  'id': 'fba41089766888023411a978d13c0aa4'
                }, {
                  'path': '/online/cgreport/:code',
                  'component': 'modules/online/cgreport/auto/OnlCgreportAutoList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'onlineAutoList',
                    'title': 'AUTO在线报表'
                  },
                  'name': 'onlineAutoList',
                  'id': '9fe26464838de2ea5e90f2367e35efa0'
                }, {
                  'path': '/online/df/:table/:id',
                  'component': 'modules/online/cgform/auto/OnlineDynamicForm',
                  'route': '0',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlineDynamicForm',
                    'title': 'AUTO动态表单'
                  },
                  'name': 'online-df-@table-@id',
                  'id': '22d6a3d39a59dd7ea9a30acfa6bfb0a5'
                }, {
                  'path': '/online/cgformList/:code',
                  'component': 'modules/online/cgform/auto/OnlCgformAutoList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformAutoList',
                    'title': 'AUTO在线表单'
                  },
                  'name': 'online-cgformList-@code',
                  'id': '54097c6a3cf50fad0793a34beff1efdf'
                }, {
                  'path': '/online/cgformInnerTableList/:code',
                  'component': 'modules/online/cgform/auto/innerTable/OnlCgformInnerTableList',
                  'route': '1',
                  'hidden': true,
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'OnlCgformInnerTableList',
                    'title': 'AUTO在线内嵌子表'
                  },
                  'name': 'online-cgformInnerTableList-@code',
                  'id': '1235823781053313025'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'cloud',
                  'componentName': 'RouteView',
                  'title': '在线开发'
                },
                'name': 'online',
                'id': 'e41b69c57a941a3bbcce45032fe57605'
              },
              {
                'redirect': null,
                'path': '/message',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/modules/message/sysMessageTemplateList',
                  'component': 'modules/message/SysMessageTemplateList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysMessageTemplateList',
                    'title': '模板管理'
                  },
                  'name': 'modules-message-sysMessageTemplateList',
                  'id': 'f780d0d3083d849ccbdb1b1baee4911d'
                }, {
                  'path': '/modules/message/sysMessageList',
                  'component': 'modules/message/SysMessageList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysMessageList',
                    'title': '消息管理'
                  },
                  'name': 'modules-message-sysMessageList',
                  'id': '944abf0a8fc22fe1f1154a389a574154'
                }, {
                  'path': '/isps/userAnnouncement',
                  'component': 'system/UserAnnouncementList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'UserAnnouncementList',
                    'title': '我的消息'
                  },
                  'name': 'isps-userAnnouncement',
                  'id': '53a9230444d33de28aa11cc108fb1dba'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'message',
                  'componentName': 'RouteView',
                  'title': '消息中心'
                },
                'name': 'message',
                'id': '5c8042bd6c601270b2bbd9b20bccc68b'
              },
              {
                'redirect': null,
                'path': '/dashboard3',
                'component': 'layouts/RouteView',
                'route': '1',
                'children': [{
                  'path': '/isystem/gatewayroute',
                  'component': 'system/SysGatewayRouteList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'SysGatewayRouteList',
                    'title': '路由网关'
                  },
                  'name': 'isystem-gatewayroute',
                  'id': '1265162119913824258'
                }, {
                  'path': '/isystem/QuartzJobList',
                  'component': 'system/QuartzJobList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'QuartzJobList',
                    'title': '定时任务'
                  },
                  'name': 'isystem-QuartzJobList',
                  'id': 'b1cb0a3fedf7ed0e4653cb5a229837ee'
                }, {
                  'path': '/isystem/log',
                  'component': 'system/LogList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'LogList',
                    'title': '日志管理'
                  },
                  'name': 'isystem-log',
                  'id': '58857ff846e61794c69208e9d3a85466'
                }, {
                  'path': '/sys/dataLog-list',
                  'component': 'system/DataLogList',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'DataLogList',
                    'title': '数据日志'
                  },
                  'name': 'sys-dataLog-list',
                  'id': '841057b8a1bef8f6b4b20f9a618a7fa6'
                }, {
                  'path': '/monitor',
                  'component': 'layouts/RouteView',
                  'route': '1',
                  'children': [{
                    'path': '/monitor/redis/info',
                    'component': 'modules/monitor/RedisInfo',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'RedisInfo',
                      'title': 'Redis监控'
                    },
                    'name': 'monitor-redis-info',
                    'id': '8d1ebd663688965f1fd86a2f0ead3416'
                  }, {
                    'path': '/monitor/TomcatInfo',
                    'component': 'modules/monitor/TomcatInfo',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'TomcatInfo',
                      'title': 'Tomcat信息'
                    },
                    'name': 'monitor-TomcatInfo',
                    'id': '024f1fd1283dc632458976463d8984e1'
                  }, {
                    'path': '/monitor/JvmInfo',
                    'component': 'modules/monitor/JvmInfo',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'JvmInfo',
                      'title': 'JVM信息'
                    },
                    'name': 'monitor-JvmInfo',
                    'id': 'd07a2c87a451434c99ab06296727ec4f'
                  }, {
                    'path': '/monitor/SystemInfo',
                    'component': 'modules/monitor/SystemInfo',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'SystemInfo',
                      'title': '服务器信息'
                    },
                    'name': 'monitor-SystemInfo',
                    'id': '8b3bff2eee6f1939147f5c68292a1642'
                  }, {
                    'path': '/monitor/HttpTrace',
                    'component': 'modules/monitor/HttpTrace',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'HttpTrace',
                      'title': '请求追踪'
                    },
                    'name': 'monitor-HttpTrace',
                    'id': 'fc810a2267dd183e4ef7c71cc60f4670'
                  }, {
                    'path': '/monitor/Disk',
                    'component': 'modules/monitor/DiskMonitoring',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'DiskMonitoring',
                      'title': '磁盘监控'
                    },
                    'name': 'monitor-Disk',
                    'id': '97c8629abc7848eccdb6d77c24bb3ebb'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'RouteView',
                    'title': '性能监控'
                  },
                  'name': 'monitor',
                  'id': '700b7f95165c46cc7a78bf227aa8fed3'
                }, {
                  'path': '5f22d2592b01c9e964efe70040162b83',
                  'component': 'layouts/IframePageView',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'IframePageView',
                    'title': 'SQL监控',
                    'url': '{{ window._CONFIG[\'domianURL\'] }}/druid/'
                  },
                  'name': '{{ window._CONFIG[\'domianURL\'] }}-druid-',
                  'id': 'aedbf679b5773c1f25e9f7b10111da73'
                }, {
                  'path': '10b80437abc6eee8c3e3daabb5e9f59e',
                  'component': 'layouts/IframePageView',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'IframePageView',
                    'title': '在线文档',
                    'url': '{{ window._CONFIG[\'domianURL\'] }}/doc.html'
                  },
                  'name': '{{ window._CONFIG[\'domianURL\'] }}-doc.html',
                  'id': '2dbbafa22cda07fa5d169d741b81fe12'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'dashboard',
                  'componentName': 'RouteView',
                  'title': '系统监控'
                },
                'name': 'dashboard3',
                'id': '08e6b9dc3c04489c8e1ff2ce6f105aa4'
              },
              {
                'redirect': null,
                'path': '/account',
                'component': 'layouts/RouteView',
                'route': '1',
                'hidden': true,
                'children': [{
                  'path': '/account/center',
                  'component': 'account/center/Index',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'Index',
                    'title': '个人中心'
                  },
                  'name': 'account-center',
                  'id': 'd86f58e7ab516d3bc6bfb1fe10585f97'
                }, {
                  'path': '/account/settings/BaseSetting',
                  'component': 'account/settings/Index',
                  'route': '1',
                  'children': [{
                    'path': '/account/settings/notification',
                    'component': 'account/settings/Notification',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'Notification',
                      'title': '新消息通知'
                    },
                    'name': 'account-settings-notification',
                    'id': 'fedfbf4420536cacc0218557d263dfea'
                  }, {
                    'path': '/account/settings/binding',
                    'component': 'account/settings/Binding',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'Binding',
                      'title': '账户绑定'
                    },
                    'name': 'account-settings-binding',
                    'id': '4f66409ef3bbd69c1d80469d6e2a885e'
                  }, {
                    'path': '/account/settings/custom',
                    'component': 'account/settings/Custom',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'Custom',
                      'title': '个性化设置'
                    },
                    'name': 'account-settings-custom',
                    'id': '882a73768cfd7f78f3a37584f7299656'
                  }, {
                    'path': '/account/settings/BaseSetting',
                    'component': 'account/settings/BaseSetting',
                    'route': '1',
                    'hidden': true,
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'account-settings-base',
                      'title': '基本设置'
                    },
                    'name': 'account-settings-base',
                    'id': '1367a93f2c410b169faa7abcbad2f77c'
                  }, {
                    'path': '/account/settings/security',
                    'component': 'account/settings/Security',
                    'route': '1',
                    'meta': {
                      'keepAlive': false,
                      'internalOrExternal': false,
                      'componentName': 'Security',
                      'title': '安全设置'
                    },
                    'name': 'account-settings-security',
                    'id': 'ec8d607d0156e198b11853760319c646'
                  }],
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'Index',
                    'title': '个人设置'
                  },
                  'name': 'account-settings-BaseSetting',
                  'id': '6e73eb3c26099c191bf03852ee1310a1',
                  'alwaysShow': true
                }, {
                  'path': '/dashboard/workplace',
                  'component': 'dashboard/Workplace',
                  'route': '1',
                  'meta': {
                    'keepAlive': false,
                    'internalOrExternal': false,
                    'componentName': 'Workplace',
                    'title': '工作台'
                  },
                  'name': 'dashboard-workplace',
                  'id': '8fb8172747a78756c11916216b8b8066'
                }],
                'meta': {
                  'keepAlive': false,
                  'internalOrExternal': false,
                  'icon': 'user',
                  'componentName': 'RouteView',
                  'title': '个人页'
                },
                'name': 'account',
                'id': '717f6bee46f44a3897eca9abd6e2ec44'
              }
            ]
          },
          'timestamp': 1622270623470
        }

        const menuData = response.result.menu
        const authData = response.result.auth
        const allAuthData = response.result.allAuth

        //Vue.ls.set(USER_AUTH,authData);
        sessionStorage.setItem(USER_AUTH, JSON.stringify(authData))
        sessionStorage.setItem(SYS_BUTTON_AUTH, JSON.stringify(allAuthData))
        if (menuData && menuData.length > 0) {
          //update--begin--autor:qinfeng-----date:20200109------for：edu-63 一级菜单的子菜单全部是隐藏路由，则一级菜单不显示------
          menuData.forEach((item, index) => {
            if (item['children']) {
              let hasChildrenMenu = item['children'].filter((i) => {
                return !i.hidden || i.hidden == false
              })
              if (hasChildrenMenu == null || hasChildrenMenu.length == 0) {
                item['hidden'] = true
              }
            }
          })
          //console.log(" menu show json ", menuData)
          //update--end--autor:qinfeng-----date:20200109------for：edu-63 一级菜单的子菜单全部是隐藏路由，则一级菜单不显示------
          commit('SET_PERMISSIONLIST', menuData)
        } else {
          reject('getPermissionList: permissions must be a non-null array !')
        }
        resolve(response)
        // }).catch(error => {
        //   reject(error)
        // })
      })
    },

    // 登出
    Logout({ commit, state }) {
      return new Promise((resolve) => {
        let logoutToken = state.token
        commit('SET_TOKEN', '')
        commit('SET_PERMISSIONLIST', [])
        Vue.ls.remove(ACCESS_TOKEN)
        Vue.ls.remove(UI_CACHE_DB_DICT_DATA)
        Vue.ls.remove(CACHE_INCLUDED_ROUTES)
        //console.log('logoutToken: '+ logoutToken)
        logout(logoutToken).then(() => {
          if (process.env.VUE_APP_SSO == 'true') {
            let sevice = 'http://' + window.location.host + '/'
            let serviceUrl = encodeURIComponent(sevice)
            window.location.href = process.env.VUE_APP_CAS_BASE_URL + '/logout?service=' + serviceUrl
          }
          resolve()
        }).catch(() => {
          resolve()
        })
      })
    },
    // 第三方登录
    ThirdLogin({ commit }, param) {
      return new Promise((resolve, reject) => {
        thirdLogin(param.token, param.thirdType).then(response => {
          if (response.code == '200') {
            const result = response.result
            const userInfo = result.userInfo
            Vue.ls.set(ACCESS_TOKEN, result.token, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_NAME, userInfo.username, 7 * 24 * 60 * 60 * 1000)
            Vue.ls.set(USER_INFO, userInfo, 7 * 24 * 60 * 60 * 1000)
            commit('SET_TOKEN', result.token)
            commit('SET_INFO', userInfo)
            commit('SET_NAME', { username: userInfo.username, realname: userInfo.realname, welcome: welcome() })
            commit('SET_AVATAR', userInfo.avatar)
            resolve(response)
          } else {
            reject(response)
          }
        }).catch(error => {
          reject(error)
        })
      })
    },
    saveTenant({ commit }, id) {
      Vue.ls.set(TENANT_ID, id, 7 * 24 * 60 * 60 * 1000)
      commit('SET_TENANT', id)
    }

  }
}

export default user